home *** CD-ROM | disk | FTP | other *** search
/ Adobe Graphics & Publishing SDK 1996 December / Adobe Graphics & Publishing SDK 1996 December.iso / pc / pm65sdk / sourcecode / includes / oldpatch.h < prev    next >
Text File  |  1996-08-27  |  6KB  |  83 lines

  1. /* AdnPatch.h */
  2. #include "PMCQErrs.h"
  3.  
  4. /* A name patch between old Addition op-codes and current names (aldaddn.h) */
  5. #define kAdnNullOperation kPMNullOperation
  6. #define kAdnLoad kPMLoad
  7. #define kAdnUnload kPMUnload
  8. #define kAdnRegister kPMRegister
  9. #define kAdnCleanup kPMCleanup
  10. #define kAdnShutdown kPMShutdown
  11. #define kAdnInvoke kPMInvoke
  12. #define kNullOperation kAdnNullOperation
  13. #define kLoad kAdnLoad
  14. #define kUnload kAdnUnload
  15. #define kRegister kAdnRegister
  16. #define kCleanup kAdnCleanup
  17. #define kShutdown kAdnShutdown
  18. #define kInvoke kAdnInvoke
  19.  
  20. /* A name patch between old Addition styles and current names (cqrstyle.h) */
  21. #define kRFBinary kXRFBinary
  22. #define kRFText kXRFText
  23. #define kRSNull kXRSNull
  24. #define kRSPointer kXRSPointer
  25. #define kRSHandle kXRSHandle
  26. #define kRSFile kXRSFile
  27. #define kRSValue kXRSValue
  28.  
  29. /* A name patch between old Addition RC error codes and current CQ error codes (cqerrors.h) */
  30. #define hszErrMessage            errMessage
  31. #define RC_NO_ERR                               CQ_NO_ERR
  32. #define RC_NO_ERROR                             CQ_NO_ERR
  33. #define RC_SUCCESS                              CQ_SUCCESS                      // same as SUCCESS.
  34. #define RC_IGNORED                              CQ_IGNORED
  35. #define RC_OPERATION_COMPLETE   CQ_OPERATION_COMPLETE   // for occaisions that completion requires a non-zero value.                                                                                    // This cannot be used as an error code.
  36. #define RC_CTOR_INVALID_ARGS    CQ_CTOR_INVALID_ARGS            // 7201: Object constructor failed due to bad args.
  37. #define RC_CTOR_FAILED                  CQ_CTOR_FAILED                                  // 7202: General constructor failure.
  38. #define RC_NEW_FAILED                   CQ_NEW_FAILED,                                  // 7203: a new failed.
  39. #define RC_BAD_OBJECT                   CQ_BAD_OBJECT                                   // 7204: Attempt to use an invalid object.
  40. #define RC_COERCION_FAILED              CQ_COERCION_FAILED                      // 7205: Type coercion failed.
  41. #define RC_NOT_IMPLEMENTED              CQ_NOT_IMPLEMENTED                      // 7206: unction is not currently implemented.
  42. #define RC_BUFFSIZE_TOO_SMALL   CQ_BUFFSIZE_TOO_SMALL                                   // 7207: buffer size is too small.
  43. #define RC_NSF_MEMORY                   CQ_NSF_MEMORY                                           // 7208: Insuffiecient Memory to proceed
  44. #define RC_INVALID_ARGS                 CQ_INVALID_ARGS                                         // 7209: one or more invalid arguments. internal, no # in message.
  45. #define RC_NOT_ENOUGH_ARGS              CQ_NOT_ENOUGH_ARGS                                              // 7210: Not enough arguments supplied.
  46. #define RC_BAD_ARG_PACKET               CQ_BAD_ARG_PACKET                                               // 7211:Improper binary argument packet.
  47. #define RC_SYS_FAILED                   CQ_SYS_FAILED                                                   // 7212:some system operation failed.
  48. #define RC_FAILURE                              CQ_FAILURE                                      // 7212:generalized failure code.
  49. #define RC_DIDNT_HANDLE                 CQ_DIDNT_HANDLE                                         // 7213:operation was not performed.
  50. #define RC_CANT_HANDLE                  CQ_CANT_HANDLE                                          // 7214:operation not performed by this module.
  51. #define RC_INVALID_STATE                CQ_INVALID_STATE                                                // 7215:operation invalid in current module state.
  52. #define RC_RES_NOT_FOUND                CQ_RES_NOT_FOUND                                                // 7216:resource not found
  53. #define RC_CANT_LOAD_ADD                CQ_CANT_LOAD_ADD                                                // 7217:cannot load Addition library
  54. #define RC_ADD_NOT_FOUND                CQ_ADD_NOT_FOUND                                                // 7218:Addition resource not found
  55. #define RC_ADD_INIT_FAILED              CQ_ADD_INIT_FAILED                                              // 7219:Addition nitialization failed
  56. #define RC_INVAL_INT_VER                CQ_INVAL_INT_VER                                                // 7220:Invalid interface version
  57. #define RC_ADDRES_NOT_FOUND             CQ_ADDRES_NOT_FOUND                                     // 7221:Registration resource not found
  58. #define RC_NO_ARGS                              CQ_NO_ARGS                                                      // 7222:No Arguments supplied.
  59. #define RC_INVALID_RC_ARG               CQ_INVALID_CQ_ARG                                               // 7223:invalid argument to command or query. takes arg # in message.
  60. #define RC_ADDN_ERR                             CQ_ADDN_ERR                                                     // 7224:Error returned from the Addition.
  61. #define RC_ADDN_CANT_ERR                CQ_ADDN_CANT_ERR                                                // 7225:Error from the Addition with "Cant" string.
  62. #define RC_PARS_BAD_CMD                 CQ_PARS_BAD_CMD                                         // 7226:Parser can't regognize command
  63. #define RC_PARS_BAD_ARG                 CQ_PARS_BAD_ARG                                         // 7227:Parser can't parse argument list
  64. #define RC_OLD_CMD                              CQ_OLD_CMD                                                      // 7228:Command is no longer supported
  65. #define RC_LAST_ERR                             CQ_LAST_ERR                                                             // Last CQ Error.
  66.  
  67.  
  68. /* A name patch between old Addition L-routines and current run-time Library routines */
  69. /* Aldus string routines are now mapped back to standard C routines. */
  70. /* On Windows16, these need to be the FAR (Large model ) versions. */
  71. /* On Windows32, some of these must be blocked out to prevent */
  72. /*  macro redefinition errors with WinBase.h. */
  73. #define lmemcpy memcpy
  74. #define lmemcmp memcmp
  75. #define lmemset memset
  76. #define lstrncpy strncpy
  77. #ifndef WIN32
  78.     #define lstrcpy strcpy
  79.     #define lstrcmp strcmp
  80.     #define lstrlen strlen
  81.     #define lstrcat strcat
  82. #endif
  83.